# -*- coding: utf-8 -*-
from openerp import models, fields, api

class gmq_bs_jdzz(models.Model):
    '''
    监督占座
    '''
    _name = 'gmq.bs.jdzz'
    _rec_name = 'student_ref'
    _description = u'监督占座'

    student_ref = fields.Many2one('gmq.bs.student',u'关联学生')
    remark = fields.Text(u'举报信息')
    seat = fields.Many2one('gmq.bs.seat',u'关联座位')
    room = fields.Char(related = 'seat.room.name')
    # img = fields.Binary(u'监督占座图片', required=True)




